#include "QMemoryDevice.h"

QMemoryDevice::QMemoryDevice(MemoryType type)
{
    switch(type){
    case QMemoryDevice::Inner_RAM:
        mMemorySpace = new char[128];
        break;
    case QMemoryDevice::Inner_ROM:
        mMemorySpace = new char[4096];
        break;
    case QMemoryDevice::External_RAM:
        mMemorySpace = new char[65536];
        break;
    case QMemoryDevice::External_ROM:
        mMemorySpace = new char[65536];
        break;

    }
}

QMemoryDevice::~QMemoryDevice()
{


}
